﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace fixs
{
    class Program
    {
      

        static void Main(string[] args)
        {
            string com = "";
            while (true)
            {
                Console.Write("COM<<");
                com = Console.ReadLine();
                if (com == "c")
                {
                    Sessions.sSetNullTable();
                }else
                    if (com == "v")
                    {
                        Sessions.sWriteTable();
                    }
                    else
                    {
                        string[] ub = com.Replace("\r\n", " ").Split(' ');
                        if (ub[0] == "add")
                        {
                            if (ub.Length == 5)
                            {
                                Sessions.sAddSes(ub[1],ub[2],ub[3],ub[4]);
                            }
                            else Console.WriteLine("com error");
                        }else
                            if (ub[0] == "del")
                            {
                                if (ub.Length == 2)
                                {
                                    Sessions.sDelSes(ub[1]);
                                }
                            }
                    }
            }
        }
    }
}
